home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / dos6nts.zip / PD0460.TXT < prev    next >
Text File  |  1993-06-22  |  17KB  |  402 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.   PD0460: RUNNING BOTH EXTENDED AND EXPANDED MEMORY ON YOUR COMPUTER
  4. ======================================================================
  5.                                                    Revision Date: 4/93
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft MS-DOS(R) versions 5.0
  9. Upgrade and 6.0 Upgrade.
  10.  
  11.  --------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  14. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  15. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  16. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  17. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  18. | accuracy and the use of this Application Note. This Application    |
  19. | Note may be copied and distributed subject to the following        |
  20. | conditions: 1) All text must be copied without modification and    |
  21. | all pages must be included; 2) If software is included, all files  |
  22. | on the disk(s) must be copied without modification [the MS-DOS(R)  |
  23. | utility DISKCOPY is appropriate for this purpose]; 3) All          |
  24. | components of this Application Note must be distributed together;  |
  25. | and 4) This Application Note may not be distributed for profit.    |
  26. |                                                                    |
  27. | Copyright 1991-1993 Microsoft Corporation. All Rights Reserved.
  28. |
  29. | Microsoft and MS-DOS are registered trademarks and Windows         |
  30. | is a trademark of Microsoft Corporation.                           |
  31.  --------------------------------------------------------------------
  32.  
  33. INTRODUCTION
  34. ============
  35.  
  36. This application note explains how to allocate memory and set up your
  37. system to run both expanded and extended memory. Some applications
  38. require expanded memory and others need extended memory. As a result,
  39. you may decide to customize your system. For example, you may want to
  40. run MS-DOS in the high memory area (which is part of extended memory)
  41. while also running applications in expanded memory. As a result, you
  42. may want to allocate your memory so your system runs more efficiently.
  43.  
  44. The method you use to allocate memory differs depending on the type of
  45. computer you have. See the section that applies to your computer.
  46.  
  47. 80386 AND 80486 SYSTEMS
  48. =======================
  49.  
  50. If your computer has an 80386 or 80486 processor, it supports both
  51. expanded and extended memory. Most 80386 and 80486 computers come with
  52. 1 megabyte (MB) or more of extended memory. The EMM386.EXE device
  53. driver, which comes with MS-DOS, can use a portion of your computer's
  54. extended memory to emulate expanded memory. Applications that need
  55. expanded memory can get it from EMM386.EXE, while other applications
  56. can still use the remaining extended memory.
  57.  
  58. If you have MS-DOS 6.0 Upgrade, you can run MemMaker to configure your
  59. 80386 or 80486 system to provide both extended and expanded memory. To
  60. do so, type the following at the MS-DOS command prompt:
  61.  
  62.    memmaker
  63.  
  64. When MemMaker asks you if you want expanded memory, choose Yes. You
  65. can then accept the default settings and let MemMaker configure your
  66. computer's memory.
  67.  
  68. If you have MS-DOS 5.0 Upgrade, do the following:
  69.  
  70.  1. If your memory board can be configured as expanded or extended
  71.     memory, configure the board so that it provides only extended
  72.     memory. (To reconfigure your memory board, see the documentation
  73.     that came with your board or contact your hardware vendor.)
  74.  
  75.  2. Create an MS-DOS startup disk by inserting a formatted floppy disk
  76.     in drive A and typing the following at the MS-DOS command prompt
  77.     and pressing ENTER
  78.       
  79.        sys <drive>: a:
  80.  
  81.     where <drive> is the drive where your CONFIG.SYS file resides. For
  82.     example, if your CONFIG.SYS file is located on drive C, type the
  83.     following command:
  84.  
  85.        sys c: a:
  86.  
  87.  3. Copy your CONFIG.SYS file to the startup disk by typing the
  88.     following at the MS-DOS command prompt and pressing ENTER
  89.       
  90.        copy <drive>:\config.sys a:\
  91.  
  92.     where <drive> is the drive where the CONFIG.SYS file currently
  93.     resides.
  94.     
  95.     For example, if your CONFIG.SYS file is located on drive C, type
  96.     the following command:
  97.  
  98.        copy c:\config.sys a:\
  99.  
  100.     If, after you complete these steps, your computer fails to start
  101.     normally or you have any other problems, you can use the startup
  102.     disk to start your system and restore your original configuration.
  103.     To get your system running again, insert the startup floppy disk
  104.     into drive A and restart your system. Then, copy your backup
  105.     CONFIG.SYS file to the drive on your system where the original
  106.     CONFIG.SYS file resided by typing the following command
  107.    
  108.        copy a:\config.sys <destination>
  109.    
  110.     where <destination> is the drive on your system where the original
  111.     CONFIG.SYS file resided (usually drive C). For example, if your
  112.     original CONFIG.SYS file was on drive C, type the following
  113.     command:
  114.       
  115.        copy a:\config.sys c:\
  116.  
  117.  4. Edit your original CONFIG.SYS file. To edit the file using MS-DOS
  118.     Editor, type the following at the MS-DOS command prompt and press
  119.     ENTER
  120.       
  121.        edit <drive>:\config.sys
  122.  
  123.     where <drive> is the drive where your CONFIG.SYS file currently
  124.     resides. For example, if CONFIG.SYS is located on drive C, type
  125.     the following command:
  126.  
  127.        edit c:\config.sys
  128.  
  129.  5. Make sure your CONFIG.SYS file contains a DEVICE command for
  130.     HIMEM.SYS. The command should appear before any other DEVICE
  131.     commands and should look like the following
  132.       
  133.        device=<path>\himem.sys
  134.  
  135.     where <path> is the drive and directory where your HIMEM.SYS file
  136.     currently resides. For example, if your HIMEM.SYS file is located
  137.     in your DOS directory on drive C, type the following command:
  138.  
  139.        device=c:\dos\himem.sys
  140.  
  141.  6. Add a DEVICE command for EMM386.EXE that has the location of
  142.     EMM386.EXE, that specifies you want EMM386.EXE to emulate expanded
  143.     memory, and that indicates the amount of extended memory to
  144.     allocate to EMM386.EXE. The following DEVICE command specifies
  145.     that EMM386.EXE should use 640 kilobytes (K) of extended memory to
  146.     emulate expanded memory
  147.       
  148.        device=<path>\emm386.exe 640
  149.    
  150.     where <path> is the drive and directory where your EMM386.EXE file
  151.     currently resides. For example, if your EMM386.EXE file is located
  152.     in your DOS directory on drive C, type the following command:
  153.  
  154.        device=c:\dos\emm386.exe 640
  155.  
  156.     If you also want to run programs in the upper memory area to
  157.     increase your available conventional memory, add the RAM switch to
  158.     the DEVICE command. The following command specifies that
  159.     EMM386.EXE should provide 640K of emulated expanded memory, and
  160.     should also provide access to upper memory blocks (UMBs)
  161.    
  162.        device=<path>\emm386.exe 640 ram
  163.     
  164.     where <path> is the drive and directory where your EMM386.EXE file
  165.     currently resides. For example, if your EMM386.EXE file is located
  166.     in your DOS directory on drive C, type the following command:
  167.  
  168.        device=c:\dos\emm386.exe 640 ram
  169.  
  170.       NOTE: Do not use the NOEMS switch; the NOEMS switch disables all
  171.       support for expanded memory.
  172.  
  173.  7. If you want MS-DOS to reside in the high memory area, make sure
  174.     your CONFIG.SYS file contains a DOS=HIGH command (or a
  175.     DOS=HIGH,UMB command if you used the RAM switch with EMM386.EXE).
  176.     If the file doesn't contain one of these commands, insert the
  177.     following line after the DEVICE=<path>\HIMEM.SYS command:
  178.       
  179.        dos=high,umb
  180.  
  181.  8. Close MS-DOS Editor by choosing Exit from the File menu, and save
  182.     the new CONFIG.SYS file by choosing Yes or pressing ENTER when 
  183.     MS-DOS Editor displays a dialog box prompting you to save your file.
  184.  
  185.  9. Restart your computer by pressing CTRL+ALT+DEL.
  186.  
  187. 10. Use the MEM command to check that both expanded and extended
  188.     memory are available. (For information about interpreting output
  189.     from the MEM command, see pages 519-522 of the "Microsoft MS-DOS
  190.     User's Guide and Reference" for version 5.0.)
  191.  
  192. EXAMPLE
  193. =======
  194.  
  195. Suppose your HIMEM.SYS, EMM386.EXE, and SMARTDRV.SYS files are in the
  196. DOS directory on drive C and you have an 80386 computer with 2 MB of
  197. extended memory that you want to configure as follows:
  198.  
  199.  - 512K of expanded memory for your word processing application
  200.    
  201.  - 1024K of extended memory for SMARTDrive
  202.    
  203.  - Maximize conventional memory
  204.    
  205. Your CONFIG.SYS file would contain the following commands:
  206.  
  207.    device=c:\dos\himem.sys
  208.    device=c:\dos\emm386.exe 512 ram
  209.    dos=high,umb
  210.    devicehigh=c:\dos\smartdrv.sys 1024
  211.  
  212. The first DEVICE command loads HIMEM.SYS, which provides access to
  213. extended memory. The next DEVICE command loads EMM386.EXE, which
  214. provides 512K of expanded memory for your word processor. The RAM
  215. switch instructs EMM386.EXE to also provide access to the upper memory
  216. area. The DOS command loads MS-DOS into the high memory area and
  217. specifies that you want to be able to load programs into the UMBs. The
  218. DEVICEHIGH command loads SMARTDrive into the upper memory area and
  219. creates a 1024K cache in extended memory. With this CONFIG.SYS file,
  220. there should be about 512K of extended memory left over.
  221.  
  222. 80286 SYSTEMS
  223. =============
  224.  
  225. If your computer has an 80286 processor, it supports both expanded and
  226. extended memory. Many 80286 computers have 384K of built-in extended
  227. memory. Others have an add-in memory board. Add-in memory boards can
  228. contain expanded or extended memory.
  229.  
  230. If your 80286 computer has an add-in memory board, you might be able
  231. to configure the memory board so that it provides both expanded and
  232. extended memory. For information about configuring your memory board,
  233. see the documentation that came with the board or contact your
  234. hardware vendor.
  235.  
  236. If your computer's memory board can provide both expanded and extended
  237. memory, follow these steps:
  238.  
  239.  1. Configure your memory board so that it provides as much expanded
  240.     memory as your application requires. (See your application's
  241.     documentation for information about its memory requirements.)
  242.     Leave any remaining memory as extended.
  243.  
  244.  2. Create an MS-DOS startup disk by inserting a formatted floppy disk
  245.     in drive A and typing the following at the MS-DOS command prompt
  246.       
  247.        sys <drive>: a:
  248.  
  249.     where <drive> is the drive where your CONFIG.SYS file currently
  250.     resides. For example, if your CONFIG.SYS file is located on drive
  251.     C, type the following command:
  252.     
  253.        sys c: a:
  254.  
  255.  3. Copy your CONFIG.SYS file to the startup disk by typing the
  256.     following at the MS-DOS command prompt and pressing ENTER
  257.       
  258.        copy <drive>:\config.sys a:\
  259.  
  260.     where <drive> is the drive where the CONFIG.SYS file currently
  261.     resides. For example, if your CONFIG.SYS file is located on drive
  262.     C, type the following command:
  263.  
  264.        copy c:\config.sys a:\
  265.  
  266.     If, after you complete these steps, your computer fails to start
  267.     normally or you have any other problems, you can use the startup
  268.     disk to start your system and restore your original configuration.
  269.     To get your system running again, insert the startup floppy disk
  270.     into drive A and restart your system. Then, copy your backup
  271.     CONFIG.SYS file to the drive on your system where the original
  272.     CONFIG.SYS file resided by typing the following command
  273.    
  274.        copy a:\config.sys <destination>
  275.    
  276.     where <destination> is the drive on your system where the original
  277.     CONFIG.SYS file resided (usually drive C). For example, if your
  278.     original CONFIG.SYS file was on drive C, type the following
  279.     command:
  280.       
  281.        copy a:\config.sys c:\
  282.     
  283.  4. Edit your original CONFIG.SYS file. To edit the file using MS-DOS
  284.     Editor, type the following at the MS-DOS command prompt
  285.       
  286.        edit <drive>:\config.sys
  287.  
  288.     where <drive> is the drive where your CONFIG.SYS file currently
  289.     resides. For example, if your CONFIG.SYS file is located on drive
  290.     C, type the following command:
  291.     
  292.        edit c:\config.sys
  293.        
  294.  5. Make sure your CONFIG.SYS file contains a DEVICE command for your
  295.     memory board's memory manager. The command should appear before
  296.     the DEVICE command for HIMEM.SYS. (See your memory board's
  297.     documentation for information about installing its memory
  298.     manager.)
  299.  
  300.  6. Make sure your CONFIG.SYS file contains a DEVICE command for
  301.     HIMEM.SYS. The command should appear after the DEVICE command for
  302.     your memory board's device driver, but before any other DEVICE
  303.     commands. The DEVICE command for HIMEM.SYS should look like the
  304.     following
  305.  
  306.        device=<path>\himem.sys
  307.  
  308.     where <path> is the drive and directory where your HIMEM.SYS file
  309.     currently resides. For example, if your HIMEM.SYS file is located
  310.     in your DOS directory on drive C, type the following command:
  311.  
  312.        device=c:\dos\himem.sys
  313.  
  314.  7. If you want MS-DOS to load itself into the high memory area, make
  315.     sure your CONFIG.SYS file contains a DOS=HIGH command. If the file
  316.     doesn't contain this command, insert the following after the
  317.     DEVICE=<path>\HIMEM.SYS command:
  318.       
  319.        dos=high
  320.  
  321.  8. Close MS-DOS Editor by choosing Exit from the File menu, and save
  322.     your file by choosing Yes or pressing ENTER when MS-DOS Editor
  323.     displays a dialog box prompting you to save your file.
  324.  
  325.  9. Restart your computer by pressing CTRL+ALT+DEL.
  326.  
  327.     If your computer fails when you restart it, your expanded memory
  328.     manager might be incompatible with HIMEM.SYS. To get your system
  329.     running again, insert the startup floppy disk into drive A and
  330.     restart your system. Then, copy your backup CONFIG.SYS file to the
  331.     drive on your system where the original CONFIG.SYS file resided by
  332.     typing the following
  333.    
  334.        copy a:\config.sys <destination>
  335.    
  336.     where <destination> is the drive on your system here the original
  337.     CONFIG.SYS file resided (usually drive C).
  338.    
  339.     For example, if, in step 3, your original CONFIG.SYS file was on
  340.     drive C, type the following at the MS-DOS command prompt:
  341.       
  342.        copy a:\config.sys c:\
  343.    
  344.     For help in getting your expanded memory manager to work with
  345.     HIMEM.SYS, contact Microsoft Product Support Services or the
  346.     manufacturer of your expanded memory board.
  347.  
  348. 10. Use the MEM command to make sure that both expanded and extended
  349.     memory are available. (For information about interpreting output
  350.     from the MEM command, see pages 519-522 of the "Microsoft MS-DOS
  351.     User's Guide and Reference" for version 5.0 or type "help mem"
  352.     (without the quotation marks) at any MS-DOS 6.0 command prompt.)
  353.  
  354. 8086 OR 8088 SYSTEMS
  355. ====================
  356.  
  357. If your computer has an 8086 or 8088 processor, you can use expanded
  358. memory only . The 8086 and the 8088 processors do not support extended
  359. memory. To set up your computer so that applications can use the
  360. memory on your expanded memory board, see the documentation that came
  361. with your memory board.
  362.  
  363. RELATED INFORMATION
  364. ===================
  365.  
  366. VERSION 5.0
  367. -----------
  368.  
  369. For additional information, see the following pages in the "Microsoft
  370. MS-DOS User's Guide and Reference" for version 5.0:
  371.  
  372.  - An overview of memory concepts, page 274
  373.    
  374.  - Information about installing HIMEM.SYS, page 279
  375.    
  376.  - Information about using EMM386.EXE as an expanded memory emulator,
  377.    page 289
  378.    
  379.  - Information about the DEVICE command, page 433
  380.    
  381.  - Information about the MEM command, page 519
  382.    
  383.  - Details about EMM386.EXE startup parameters, page 605
  384.  
  385. VERSION 6.0
  386. -----------
  387.  
  388. For more information, see the following sources:
  389.  
  390.  - Information about making more memory available, Chapter 6 in the
  391.    "Microsoft MS-DOS User's Guide" for version 6.0
  392.    
  393.  - Information about the DEVICEHIGH, LOADHIGH, or MEMMAKER commands,
  394.    Help (type "help" [without the quotation marks] at any MS-DOS
  395.    command prompt)
  396.  
  397.  - Information about EMM386.EXE or HIMEM.SYS, Help (type "help"
  398.    [without the quotation marks] at any MS-DOS command prompt)
  399.  
  400.  
  401.  
  402.